package _31define;

public class Demo {
    public static void main(String[] args) {
        Integer[] a={1,2,3,4,5,6,7,8,9};
        String[] b={"abc","我是老汤","你好","hello"};
        Double[] c={1.2,3.5,5.6,7.8,9.0};
        System.out.println(printArray(a));
        System.out.println(printArray(b));
        System.out.println(printArray(c));

    }
    public static <T> String printArray(T[] t){
        int a= t.length;
        int b= 0;
        String c="";
        for (T t1 : t) {
            c+=(t1+" ");
        }
        return c;
    }
}
